package lesson18;

public class Zoo 
{
	Mammal[] mammals = new Mammal[2];
	
	public void makeAllAnimalsNoisy()
	{
		for (int i = 0; i < mammals.length; i++) 
		{
			mammals[i].makeNoise();
		}
	}
	
	public void checkIfBreathing()
	{
		for (int i = 0; i < mammals.length; i++) 
		{
			mammals[i].breathe();
		}
	}
	
	public void giveBirth(int children)
	{
		for (int i = 0; i < mammals.length; i++) 
		{
			mammals[i].giveBirth(children);
		}
	}
	
	public void move()
	{
		for (int i = 0; i < mammals.length; i++) 
		{
			mammals[i].move("Left");
		}
	}
}
